﻿<Window x:Class="MovieBuddy.Dialogs.NewMovieDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add Movie" Height="481" Width="426" Icon="/MovieBuddy;component/resources/movieBuddy.png" WindowStartupLocation="CenterOwner" xmlns:my="clr-namespace:MovieBuddy.Controls" xmlns:MSTB="clr-namespace:MovieBuddy.Controls.MSTB" MinHeight="200" MinWidth="300">
    <Grid>
        <ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0,0,0,32">
            <StackPanel Margin="0">
                <StackPanel.Resources>
                    <Style TargetType="{x:Type Grid}">
                        <Setter Property="Margin" Value="0,3,3,0"/>
                    </Style>
                </StackPanel.Resources>

                <Grid>
                    <Label Content="Name:" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <TextBox Height="23" Margin="91,0,0,0" Name="nameBox" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Description:" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <TextBox Margin="91,0,0,0" Name="descriptionBox" Height="60" TextWrapping="Wrap" AcceptsReturn="True" />
                </Grid>
                <Grid>
                    <Label Content="People:" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <MSTB:MultiSelectTextBox Height="23" Margin="91,0,0,0" x:Name="peopleBox" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Tags:" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <MSTB:MultiSelectTextBox Height="23" Margin="91,0,0,0" x:Name="tagsBox" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Companies:" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <MSTB:MultiSelectTextBox Height="23" Margin="91,0,0,0" x:Name="companiesBox" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Year:" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="91,0,0,0" Name="yearBox" Width="51" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Runtime:" Height="28" HorizontalAlignment="Left" Name="label4" VerticalAlignment="Center" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="91,0,0,0" Name="runtimeBox" VerticalAlignment="Center" Width="51" />
                    <Label Content="(minutes)" Height="28" HorizontalAlignment="Left" Margin="148,0,0,0" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Movie File:" Height="28" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <my:FilePicker Margin="91,0,0,0" x:Name="movieFilePicker" VerticalAlignment="Center" />
                </Grid>
                <Grid>
                    <Label Content="Image:" Height="28" HorizontalAlignment="Left" VerticalAlignment="Top" />
                    <my:FilePicker Margin="91,0,0,0" x:Name="imageFilePicker" VerticalAlignment="Top" FileUpdated="ImagePicked" IsForImages="True" AllowUrl="True" />
                    <Image Height="54" HorizontalAlignment="Left" Margin="91,30,0,0" Name="imagePreview" Stretch="Fill" VerticalAlignment="Top" Width="69" />
                </Grid>
            </StackPanel>
        </ScrollViewer>
        <Grid VerticalAlignment="Bottom" Margin="0,0,0,0" Height="32">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="123*"/>
                <ColumnDefinition Width="86*"/>
            </Grid.ColumnDefinitions>
            <Button Content="Cancel" Height="23" HorizontalAlignment="Right" Margin="0,4,6,4" Name="cancelBut" Width="75" Click="CancelButClick" Grid.Column="1" />
            <Button Content="Add Movie" Height="23" HorizontalAlignment="Right" Margin="0,4,89,4" Name="saveBut" Width="75" Click="SaveButClick" Grid.Column="1" />
            <Label Height="28" Margin="16,2,14,2" Name="errorLabel" Foreground="#FFFF0303" Width="217" />
        </Grid>
    </Grid>
</Window>
